﻿<?php
	echo $this->Html->script(array('ckeditor/ckeditor','ckfinder/ckfinder'));
?>
<script>
function confirmDelete(delUrl)
{
if (confirm("Bạn có muốn xóa danh mục này không!"))
{
	document.location = delUrl;
}
}
</script>
<div class="content-box"><!-- Start Content Box -->
    <div class="content-box-header">
        
        <h3>Sửa Thông tin</h3>
        

        
        <div class="clear"></div>
        
    </div> <!-- End .content-box-header -->
    <div class="content-box-content">
        
        <div class="tab-content" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
        </div> <!-- End #tab1 -->
        
        <div class="tab-content default-tab" id="tab2">
        
             <?php echo $form->create(null, array( 'url' => DOMAINAD.'Shop/edit','type' => 'post','enctype'=>'multipart/form-data','name'=>'image')); ?>       
                
                <fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
                    <p>
                        <label>Địa chỉ gian hàng:   <?php echo $edit['Shop']['name']?></label>
                    
                    </p>
                      <p>
                        <label>Email:   <?php echo $edit['Shop']['email']?></label>
                    
                    </p>
                    
                    
                  <p>
                        <label>Lĩnh vực kinh doanh</label>
                           <?php echo $form->input('Shop.business',array( 'label' => '','class'=>'text-input medium-input datepicker'));?>
                    </p> 
                      <p>
                        <label>Tên công ty/cửa hàng</label>
                           <?php echo $form->input('Shop.namecompany',array( 'label' => '','class'=>'text-input medium-input datepicker'));?>
                    </p> 
            
                    <p>
                        <label>Di động</label>
                           <?php echo $form->input('Shop.phone',array( 'label' => '','class'=>'text-input medium-input datepicker'));?>
                    </p> 
                   <p>
                        <label>Điện thoại</label>
                           <?php echo $form->input('Shop.mobile',array( 'label' => '','class'=>'text-input medium-input datepicker'));?>
                    </p>

                 
                     <p>
                        <label>Ảnh đại diện công ty</label>
                        <input type="text" size="80" style="height:25px;" name="userfile1"  value="<?php echo $edit['Shop']['images']?>"> &nbsp;<font color="#FF0000"> <a href="javascript:window.open('<?php echo DOMAINAD; ?>upload_pic.php?stt=1','userfile1','width=500,height=300');window.history.go(1)" >[ upload ]</a> </font><font color="#FF0000">*</font>(jpg, jpeg, gif, png)
                    </p>
					
                    <p>
                   <?php echo $form->input('Shop.id',array('label' => '','type'=>'hidden'));?>
                        <input class="button" type="submit" value=" Sửa " />
                    </p>
                    
                </fieldset>
                
                <div class="clear"></div><!-- End .clear -->
                
            <?php echo $form->end(); ?>
            
        </div> <!-- End #tab2 -->        
        
    </div> <!-- End .content-box-content -->
 </div>